We present a new method devoted to chemical tagging for Galactic Archeology. In the context of the Gaia-ESO Survey (GES) and the Gaia Data Processing and Analysis Consortium (DPAC), we aim at preparing the Gaia-Radial Velocity Spectrograph analysis, which will provide ~ 2×106 spectra covering the IR CaII triplet domain (R ~ 11 500), with sufficient SNR to perform chemical tagging. Our method will be integrated in the Gaia DPAC Apsis pipeline (CU8, Astrophysical Parameters) and we test it with GES GIRAFFE spectra (MEDUSA mode, HR10 & HR21) deriving abundances of MgI in 168 stars.